#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@Project    :icac2 
@File       :filter.py
@Author     :wangfan13
@Date       :2021/5/24 12:39 
"""
from django_filters import rest_framework as filters

from apps.case.models import Case


class CaseFilter(filters.FilterSet):
    case_name = filters.CharFilter(field_name='case_name', lookup_expr='icontains')

    class Meta:
        model = Case
        fields = ['case_name', 'case_code', 'case_owner']
